package com.java_enum;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class DoubleBall {
    public static void main(String[] args) {
        Set set=new HashSet();
        while(set.size()<7){
         set.add ((int)( Math.random()*33+1));
        }
        System.out.println("红球："+Arrays.toString(set.toArray()));
        Random random=new Random();
        System.out.println("蓝求："+random.nextInt(16));

    }
}
